package eureka.customer.client;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@FeignClient("EUREKA-PROVIDER")
public interface ProviderClient {
    //映射到需要调用服务的url   映射的地址必须一致
    @RequestMapping(value="/provide/con1", method = RequestMethod.GET)
    String con1();

    @GetMapping("/provider/discovery")
    Object discovery();
}
